package com.tfjybj.itoo.exam.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.exam.entity.EvaluationStudentEntity;
import com.tfjybj.itoo.exam.model.QueryTeacherByStudentIdModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * EvaluationStudentDao接口
 * evaluationStudent表
 *
 * @author 贾建清
 * @version 2.0.0
 * @since 2.0.0 2019-05-02 15:20:23
 */
@Repository("evaluationStudentDao")
public interface EvaluationStudentDao extends BaseMapper<EvaluationStudentEntity> {

    //根据studentId查询需要被评价的老师--刘竞博
    List<QueryTeacherByStudentIdModel> QueryTeacherByStudentId(@Param("studentId") String studentId);

    /**
     * 根据模板Id更新endTime
     * @param id 问卷id
     * @param  endTime 问卷状态
     * @return teEvaluationPaperModelList 问卷详情
     * @author 白爱民
     * @since 2019年7月20日19:42:59
     */
    boolean updateEndTime(@Param("id") String id, @Param("endTime") Date endTime);
}
